/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package im.clusterhead;

import im.general.BaseNodeInfo;

/**
 *
 * @author brownstone
 */
public class ClusterHeadInfo extends BaseNodeInfo {

    protected String guestAgent;

    protected int attached_nodes;

    public int getAttached_nodes() {
        return attached_nodes;
    }

    public void setAttached_nodes(int attached_nodes) {
        this.attached_nodes = attached_nodes;
    }

    public void addAttachedNode() {
        this.attached_nodes++;
    }

    public void remAttachedNode() {
        if(this.attached_nodes>0)
            this.attached_nodes--;
    }

    public void eraseAttachedNodes() {
        this.attached_nodes = 0;
    }
    
    public ClusterHeadInfo(String guestAgent) {
        super();
        this.guestAgent = guestAgent;
    }

    public String getGuestAgent() {
        return guestAgent;
    }

    public void setGuestAgent(String guestAgent) {
        this.guestAgent = guestAgent;
    }
}
